package com.study.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

import com.study.dao.entity.MovieUser;
import com.study.feign.UserFeignClient;

@RestController
public class MovieUserController {
	
	@Autowired
	UserFeignClient userFeignClient;
	
	@GetMapping("/feign/{id}")
	public MovieUser selectById(@PathVariable("id") int id) {
		MovieUser movieUser =  userFeignClient.selectById(id);
		return movieUser;
	}
	
}
